//
//  WYCBenefitController.m
//  掌上还
//
//  Created by 中企互联 on 2018/1/11.
//  Copyright © 2018年 中企互联. All rights reserved.
//

#import "WYCBenefitController.h"

@interface WYCBenefitController ()

@end

@implementation WYCBenefitController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title = @"分润明细";
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
    [self.navigationController.navigationBar setBarTintColor:WYCMain];
    self.view.backgroundColor = WYCGlobalBg;
    [self setNav];
}

- (void)setNav {
    CGFloat tableviewY = CGRectGetMaxY(self.navigationController.navigationBar.frame);
    
    UIView * moneyView = [[UIView alloc] init];
    moneyView.frame = CGRectMake(0, tableviewY, ScreenWidth, 160 * px);
    moneyView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:moneyView];
    
    UIView * mainView = [[UIView alloc] init];
    mainView.frame = CGRectMake(40 * px, 40 * px, 3, 80 * px);
    mainView.backgroundColor = WYCMain;
    [moneyView addSubview:mainView];
    
    UILabel * moneylabel = [[UILabel alloc] init];
    moneylabel.frame = CGRectMake(CGRectGetMaxX(mainView.frame) + 40 * px, mainView.y, ScreenWidth, mainView.height);
    moneylabel.font = [UIFont systemFontOfSize:MiddleFont];
    moneylabel.text = @"0.0元";
    [moneyView addSubview:moneylabel];
    
    
    UIView * tabelView = [[UIView alloc] init];
    tabelView.frame = CGRectMake(0, CGRectGetMaxY(moneyView.frame) + 10 * px, ScreenWidth, ScreenHeight);
    tabelView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:tabelView];
    
    
    UILabel * showlabel = [[UILabel alloc] init];
    showlabel.frame = CGRectMake(0, ScreenHeight / 2 , ScreenWidth, 50 * px);
    showlabel.font = [UIFont systemFontOfSize:SmallFont];
    showlabel.textAlignment = NSTextAlignmentCenter;
    showlabel.textColor = [UIColor grayColor];
    showlabel.text = @"暂无分润，快去邀请好友加入吧！";
    [tabelView addSubview:showlabel];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
